package com.company.design.create.builder;

/**
 * @author yingfing
 * @create 2020--09--26 10:24
 * @describe
 */
public class MobikeBuilder extends Builder {

    private Bike mBike = new Bike();

    @Override
    void buildFrame() {
        mBike.setFrame(new AlloyFrame());
    }

    @Override
    void buildSeat() {
        mBike.setSeat(new DermisSeat());
    }

    @Override
    void buildTire() {
        mBike.setTrie(new SolidTrie());
    }

    @Override
    Bike createBike() {
        return mBike;
    }
}
